import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"

//  大底入库单号查询
export const BottomWarehouseEntryNumber = (parms:any) => {
    return service.post<any,any>(`/consumable/getConsumableList`,parms)
}

// 入库明细查询
export const InventoryDetailsQuery = (reqNo:string) => {
    return service.get<any,any>(`/consumable/getConsumableDetail?slipNo=${reqNo}`)
}

// 打勾检核
export const CheckWithCheckmark = (choose:number,parms:any,remark:string) => {
    return LoginWork.post<any,any>(`/consumable/optionConsumable?choose=${choose}&remark=${remark}`,parms)
}

// 保存
export const preserve = (parms:any) => {
    return LoginWork.post<any,any>(`/consumable/saveConsumableDetail`,parms)
}

// 取单价
export const ChargingUnitPrice = (parm:any) => {
    return LoginWork.post<any,any>(`/consumable/setUnitPrice`,parm)
}